<extend name="Public/base" />
<block name='style'>
    <style>
        .texta{
            width: 180px;
        }
        body{
            background-color: white;
        }
    </style>
</block>
<block name="body">
    <!-- 弹窗插件 -->
    <include file="Public:artdialog" />
    <!-- 表单验证插件 -->
    <include file="Public:validform" />

    <form action="{:U('addorupdate')}" method="post" role="form" class="form-horizontal row-border vform">
        <input type="hidden" name="region_id" value="{$list['region_id']}">
        <div class="row">
            <div class="col-md-12">
                <div class="block-web">
                    <div class="header">
                        <h3 class="content-header">
                            偏远地区附加费编辑
                        </h3>
                    </div>
                    <div class="porlets-content">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">地区</label>
                            <div class="col-sm-9">
                                <if condition="$list eq ''">
                                <select name="region_name" id="region_name" >
                                        <volist name="listname" id="vo">
                                            <option value="{$vo['region_id']}">{$vo['region_name']}</option>
                                        </volist>
                                </select>
                                    <else />
                                    <input type="text" readonly name="region_name" value="{$list['region_name']}"/>
                                </if>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">附加费用</label>
                            <div class="col-sm-9">
                                <input type="text" class="texta" datatype="/^[0-9]+(\.[0-9]{0,2})?$/" errormsg="只能输入0或正数(包含两位小数)" name="ems_money" value="{$list['ems_money']}"/>
                                <div class="Validform_checktip"></div>
                                <if condition="$list neq ''">
                                    <div>
                                    <font color="red">如果附加设为0,则删除此附加费用</font>
                                    </div>
                                </if>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer" >
            <button class="btn btn-primary btn-success bt_submit" type="submit">提交</button>
            <button class="btn btn-default bt_close" type="button" onclick="art.dialog.open.api.close();">关闭</button>
        </div>
    </form>
</block>